/*
 * @Author: lusx 
 * @Date: 2020-05-13 13:53:23 
 * @Last Modified by: lusx
 * @Last Modified time: 2020-05-21 17:02:57
 */
import React from 'react';
import { inject, observer } from 'mobx-react';
import MyListPage from '../../../main/pages/mainListPage';
import NewSearch from '../newSearch'
@inject('singleListStore','mainStore')
@observer
export default class SingleList extends React.Component {
    componentWillMount() {
        const { singleListStore: { init }, match: { url, params: { quicktype } } ,location :{pathname} } = this.props;
        let params = { route: url, quicktype,pathname };
        if(quicktype == 'statusList'){params.count_status=pathname.split("/").pop()}
        init(params);
    }
    render() {
        const {mainStore :{actionSheetStore: { getActionBtn }} ,singleListStore:{list}} = this.props;
        const provider = { getActionBtn };
        return (
            <div>
                <NewSearch />
                <MyListPage listViewStore={list} provider={provider}/>
            </div>
        )
    }
}